package com.fishy;

import cn.hutool.extra.spring.SpringUtil;
import com.fishy.chat.ChatServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;

/**
 * 应用启动类
 *
 * @author Ray.Hao
 * @since 0.0.1
 */
@SpringBootApplication
@ConfigurationPropertiesScan // 开启配置属性绑定
// @EnableScheduling // 开启定时任务
public class FishyHavenApplication {

    public static void main(String[] args) {
        SpringApplication.run(FishyHavenApplication.class, args);

        ChatServer chatServer = SpringUtil.getBean(ChatServer.class);
        chatServer.start();
    }

}
